package com.example.demo.temp;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;

public class t1 {

    public static void main(String[] args) {
        HashMap map = new HashMap();
        map.put("1", 1);

        /*String s = "2";
        sss(s, map);
        System.out.println(s);
        System.out.println(map);*/


        cc s = JSONObject.parseObject("{\"code\":200,\"data\":5,\"message\":\"审批人状态修改成功\"}", cc.class);

        System.out.println(s.toString());

    }


    private static boolean sss(String s, HashMap map) {
        s = "111";
        map.put("2", 2);
        return true;
    }



    public static class cc {
        private Integer code;

        private String message;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public Integer getData() {
            return data;
        }

        public void setData(Integer data) {
            this.data = data;
        }

        private Integer data;
    }
}
